{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="row[id]" value="{$data.id}">

    <div class="layui-form-item" >
        <label class="layui-form-label">分配陪诊员</label>
        <div class="layui-input-block">
            <select name="row[pz_id]">
                {if !empty($pz_list)}
                {foreach $pz_list as $key2}
                <option <?php if( $key2['id'] == $data['pz_id']){ ?>selected<?php }?>  value="{$key2.id}">{$key2.name}</option>
                {/foreach}
                {/if}
            </select>
        </div>
    </div>

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>提交</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'laydate', 'form'], function () {
        var yznForm = layui.yznForm,
            laydate = layui.laydate;
        var form = layui.form;
        yznForm.bindevent($("form.layui-form"));
        laydate.render({
            elem: '#ID-laydate'
        });
    });
</script>
{/block}